// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_img.p_video;

import android.graphics.Bitmap;
import android.os.Process;

// Referenced classes of package com.nnee.p_img.p_video:
//            r, s, c, u, 
//            am, a, af, ae

class cls_ah
    implements Runnable
{

    private cls_ah(cls_c c1)
    {
    	 super();
        a = c1;
       
    }

    cls_ah(cls_c c1, cls_ae ae)
    {
        this(c1);
    }

    private Runnable a(int i)
    {
        return new cls_r(this, i);
    }

    private Runnable a(int i, int j, boolean flag, Bitmap bitmap, int k)
    {
        return new cls_s(this, k, i, j, bitmap, flag);
    }

    private void a()
    {
    	int k;
        int l;
        int i;
        int ai[];
        int j=0;
        i = cls_c.f(a).b();
        ai = cls_c.b(a).b();
        j = 0;
while(true)
{
        if(j >= ai.length)
            return;
        if(!cls_c.c(a)) {
        	 
             k = ai[j];
             l = k + cls_c.e(a);
             if(l >= 0 && l < i && cls_c.b(a).b(cls_c.e(a), k)) {
            	 cls_a a1 = cls_c.f(a).a(l);
                 if(a1 == null) {
                	 j++;
                	 continue;
                 } else {
                	 if(cls_c.c(a)) {
                		 return;
                	 } else
                	 {
                		 Bitmap bitmap = a1.f();
                	        if(bitmap == null)  {
                           	 j++;
                        	 continue;
                         } else 
                	        {

                	            {
                	                if(!cls_c.c(a))
                	                    return;
                	                bitmap.recycle();
                	            }
                	        }
                	 }
                 }
             } else  {
            	 j++;
            	 continue;
             }
        }
}
//_L1:
//        return;
//_L2:
//        int k;
//        int l;
//        k = ai[j];
//        l = k + c.e(a);
//        if(l >= 0 && l < i && c.b(a).b(c.e(a), k)) goto _L4; else goto _L3
//_L3:
//        j++;
//          goto _L5
//_L4:
//        cls_a a1 = c.f(a).a(l);
//        if(a1 == null) goto _L3; else goto _L6
//_L6:
//        if(c.c(a)) goto _L1; else goto _L7
//_L7:
//        Bitmap bitmap = a1.f();
//        if(bitmap == null) goto _L3; else goto _L8
//_L8:
//label0:
//        {
//            if(!c.c(a))
//                break label0;
//            bitmap.recycle();
//        }
//          goto _L1
//        Runnable runnable = a(c.e(a), k, false, bitmap, c.a(a));
//        c.g(a).a(runnable);
//          goto _L3
//        c.g(a).a(a(c.a(a)));
//          goto _L1
    }

    public void run()
    {
        Process.setThreadPriority(10);
 
        cls_c c1 = a;
        
_L2:
        if(!cls_c.c(a) && !cls_c.d(a) && cls_c.e(a) != -1)
            {
        	cls_c.a(a, false);
        	return;
            }
        if(cls_c.d(a))
            return;
        cls_c.a(a, true);
        a.notify();
        try {
			a.wait();
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
 
    }

    final cls_c a;
}
